package com.example.demo.model.converter;

import com.example.demo.model.core.PageVo;
import com.example.demo.model.entity.SysRole;
import com.example.demo.model.form.RoleForm;
import com.example.demo.model.vo.RoleVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface SysRoleConverter {

    SysRole toEntity(RoleForm roleForm);

    RoleForm toForm(SysRole entity);

    PageVo<RoleVO> toPageVo(PageVo<SysRole> pageVo);
}
